#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int number[10] = {0};
	for (int i = 0; i < 10; i++)
	{
		scanf("%d", &number[i]);
		
	}
	for (int j= 9; j >=0; j--)
		{
			printf("%d ", number[j]);
	    }

	return 0;
}